var arr = [98,2,38,88];
console.log("排序前",arr);
arr.sort(function(a,b){
    if(a>b){
        return 1;
    }else{
        return -1;
    }
});
console.log("排序后",arr);
